import React, { Component } from 'react';

class PageTitle extends Component {
	constructor(props) {
		super(props);
		this.state = {  };
	}

	componentWillMount() {
		document.title = `${this.props.title}-HAPPY MMALL`
	}

	render() {
		return (
			<div className="" style={{position: 'relative'}}>
				<h1 className="page-header">{this.props.title}</h1>
				{this.props.children}
			</div>
		);
	}
}

export default PageTitle;
